package com.zcckj.log.aop;

import com.zcckj.log.parse.LogRecordOperationSource;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;

/**
 * @author jaychang
 */
public class LogRecordBeanFactoryAdvisor extends AbstractBeanFactoryPointcutAdvisor {

    private LogRecordOperationSource logRecordOperationSource;

    @Override
    public Pointcut getPointcut() {
        LogRecordPointcut operateLogPointcut = new LogRecordPointcut();
        operateLogPointcut.setLogRecordOperationSource(logRecordOperationSource);
        return operateLogPointcut;
    }

    public void setOperateLogOperationSource(LogRecordOperationSource logRecordOperationSource) {
        this.logRecordOperationSource = logRecordOperationSource;
    }
}
